package com.lin.util;

import java.util.Random;

/**
 * @Author Created by Lin Weihong
 * @Time on 2021/11/27 11:38
 */
public class OrderSerialUtil {
    public static synchronized String createUniqueOrderSerial() {
        Random random = new Random();
        Integer orderSerial = random.nextInt(900000)+100000;
        return System.currentTimeMillis() + String.valueOf(orderSerial);
    }
}
